﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/Edit.master" AutoEventWireup="true"
    CodeBehind="T2Edit.aspx.cs" Inherits="MaluJg.web.Three.T2Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../Scripts/jquery.js"></script>
 <script>
        function check() {
            var valid = true;
            $("#spName").html("");
         
            if ($.trim($("#<%=tbName.ClientID %>").val()) == '') {
                valid = false;
                $("#spName").html("必填");
            }           
            return valid;
        }
        
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolBarContentPlaceHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <table border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnSave" OnClick="lbtnSave_Click" CausesValidation="false" ValidationGroup="vg1">
                    <span><img src="../Images/Icon/Object/File-add.gif" /></span><span>添加</span></asp:LinkButton>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="window.close();">
                    <span>
                        <img src="../Images/Icon/Object/File-delete.gif" alt="关闭" /></span><span>关闭</span>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FieldContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table id="commandTable" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
                width="100%">
                <tr>
                    <td class="FieldName" width="130">
                        <span>&nbsp;备案单位：</span>
                    </td>
                    <td class="FieldInput" width="250">
                        <asp:TextBox ID="tbDept" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox>
                        &nbsp; <span class="Alter">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                            runat="server" ControlToValidate="tbDept" ValidationGroup="vg1">必填</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;领导签名：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbSign" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;填表日期：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox runat="server" ID="tbYear" Width="60" CssClass="InputSmall" MaxLength="6"></asp:TextBox>年</span><span>
                            <asp:TextBox runat="server" ID="tbMonth" Width="40" CssClass="InputSmall" MaxLength="3"></asp:TextBox>月</span><span><asp:TextBox
                                runat="server" ID="tbDay" Width="40" CssClass="InputSmall" MaxLength="3"></asp:TextBox>日
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table id="TitleBar" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
                width="100%">
                <tr class="FTitle">
                    <td>
                        <div class="MainTitle">
                            详情</div>
                    </td>
                    <td align="right">
                        <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                            <asp:LinkButton runat="server" ID="btnAdd" CausesValidation="false" OnClick="btnAdd_Click" OnClientClick="return check()">
                        <span >
                            <img src="../Images/add.png" alt="单条添加" /></span><span>单条添加</span></asp:LinkButton>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table width="100%">
                            <tr>
                                <td width="60" align="center">
                                    事项名称：
                                </td>
                                <td width="250" class="FieldInput" align="center">
                                    <asp:TextBox ID="tbName" Width="200px" MaxLength="50" runat="server" CssClass="InputSmall"></asp:TextBox>
                                    <span class="Alter" id="spName">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                        runat="server" ControlToValidate="tbName">必填</asp:RequiredFieldValidator>
                                </td>
                                <td width="60">
                                    事项性质：
                                </td>
                                <td width="360">
                                    <asp:CheckBoxList runat="server" ID="cblType" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="重大决策" Value="cb0"></asp:ListItem>
                                        <asp:ListItem Text="重要人事调整" Value="cb1"></asp:ListItem>
                                        <asp:ListItem Text="重大项目安排" Value="cb2"></asp:ListItem>
                                        <asp:ListItem Text="大额资金使用" Value="cb3"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                                
                                 <td rowspan="3" width="40">
                                    备注：
                                </td>
                                <td  rowspan="3" class="FieldInput">
                                    <asp:TextBox ID="tbRemark" Width="98%" Rows="3" TextMode="MultiLine" MaxLength="500" runat="server" CssClass="InputLarge"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    讨论情况：
                                </td>
                                <td>
                                    <asp:CheckBoxList runat="server" ID="cblDiscuss" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="一致通过" Value="cb4"></asp:ListItem>
                                        <asp:ListItem Text="少数服从多数" Value="cb5"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                                <td align="center">
                                    执行情况：
                                </td>
                                <td>
                                    <asp:CheckBoxList runat="server" ID="cblExecute" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="已执行" Value="cb4"></asp:ListItem>
                                        <asp:ListItem Text="执行中" Value="cb5"></asp:ListItem>
                                        <asp:ListItem Text="未执行" Value="cb6"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                                
                               
                            </tr>
                            <tr>
                            <td width="60">
                                    决策时间：
                                </td>
                                <td width="120" class="FieldInput">
                                    <asp:TextBox ID="tbMakeTime" Width="100px" MaxLength="50" runat="server" CssClass="InputSmall"></asp:TextBox>
                                </td>
                                <td >
                                    变更决策：
                                </td>
                                <td class="FieldInput">
                                    <asp:TextBox ID="tbChange" Width="100px" MaxLength="500" runat="server" CssClass="InputSmall"></asp:TextBox>
                                <asp:TextBox runat="server" ID="tbID1" style="display:none"></asp:TextBox></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <table border="1" cellspacing="0" width="100%" cellpadding="0" id="tbl" class="MainInfolist"
                style="border-collapse: collapse;">
                <tr>
                    <td width="4%" rowspan="2" valign="middle" align="center">
                        序号
                    </td>
                    <td rowspan="2" valign="middle" align="center">
                        事项名称
                    </td>
                    <td width="28%" colspan="4" align="center">
                        事项性质
                    </td>
                    <td width="6%" rowspan="2" align="center">
                        决策时间
                    </td>
                    <td width="16%" colspan="2" align="center">
                        讨论情况
                    </td>
                    <td width="16%" colspan="4" align="center">
                        执行情况
                    </td>
                    <td width="5%" rowspan="2" align="center">
                        备注
                    </td>
                    
                        <%if (CanAdd == "0")
                          { %>
                          <td width="8%" rowspan="2" >
                        &nbsp;<%}
                          { %> </td>
                        <%} %>
                   
                </tr>
                <tr id="tr2">
                    <td width="7%" align="center">
                        重大决策
                    </td>
                    <td width="7%" align="center">
                        重要人事调整
                    </td>
                    <td width="7%" align="center">
                        重大项目安排
                    </td>
                    <td width="7%" align="center">
                        大额资金使用
                    </td>
                    <td width="8%" align="center">
                        一致通过
                    </td>
                    <td width="8%" align="center">
                        少数服从多数
                    </td>
                    <td width="4%" align="center">
                        已执行
                    </td>
                    <td width="4%" align="center">
                        执行中
                    </td>
                    <td width="4%" align="center">
                        未执行
                    </td>
                    <td width="4%" align="center">
                        变更决策
                    </td>
                </tr>
                <asp:Repeater runat="server" ID="rpInstance" OnItemCommand="rpInstance_ItemCommand"
                    OnItemDataBound="rpInstance_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Container.ItemIndex+1 %>
                            </td>
                            <td align="center">
                                <%#Eval("Name") %>
                            </td>
                            <td align="center">
                                <%#Eval("IsMost").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("IsHRChange").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("IsArrage").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("IsMoneyUse").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("MakeTime")%>
                            </td>
                            <td align="center">
                                <%#Eval("IsAllPass").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("IsMinorOBeyMajor").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("IsDone").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("IsIng").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("IsUnDo").ToString() == "True" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#Eval("Change")%>
                            </td>
                            <td align="center">
                                <%#Eval("Remark")%>
                            </td>
                             <%if (CanAdd == "0")
                          { %>
                          <td  align="center">
                           &nbsp;<asp:LinkButton ID="lbtnDelete" runat="server" OnClientClick="return confirm('确认删除？')" CommandName="Delete" CausesValidation="false"><span><img src="../Images/Icon/Action/delete.gif" alt="删除" /></span></asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="lbtnEdit" runat="server" CommandName="Edit" CausesValidation="false"><span><img src="../Images/Icon/Action/edit.gif" alt="编辑" /></span></asp:LinkButton>
                          
                       <%}
                          { %> </td>
                        <%} %>
                            
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="DescriptionContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="server">
</asp:Content>
